﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ToaThuoc.aspx.cs" Inherits="ToaThuoc_PAK.ToaThuoc" %>

<%@ Register TagPrefix="uc1" TagName="phongkhammenu" Src="~/UserControls/phongkhammenu.ascx" %>
<%@ Register TagPrefix="uc1" TagName="about" Src="~/UserControls/about.ascx" %>
<%@ Register TagPrefix="uc1" TagName="menu" Src="~/UserControls/menu.ascx" %>
<%@ Register TagPrefix="userControl" TagName="ChiDinh" Src="~/UserControls/ChiDinh.ascx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="css/nghiepvuy.css" rel="stylesheet" />
    <link href="css/ToaThuoc.css" rel="stylesheet" />
    <link href="css/pagingStyle.css" rel="stylesheet" />
    <link href="css/YKhoaControls.css" rel="stylesheet" />
    <link href="css/smoothness/jquery-ui-1.10.4.custom.min.css" rel="stylesheet" />
    <script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
    <script src="js/jquery-ui-1.10.4.min.js" type="text/javascript"></script>
    <script src="js/jquery.ui.datepicker-vi.js" type="text/javascript"></script>
    <script src="js/ToaThuocScripts.js" type="text/javascript"></script>
    <script src="js/jsChiDinh.js"  type="text/javascript"></script>
    <title>Toa thuốc</title>
    <script type="text/javascript">
        TaoPhacDoMenu();
        var DMCDThuoc = new Array();
        var DVThuoc = new Array();
        $(document).ready(function () {
            Initilize();
            $('#txtDSPK_BacSi').val('<%= Session["mand"].ToString() %>');
            //TaoCuaSoTenPDMoi();
            //TaoPhacDoMenu();
            //TaoCuaSoDSPD();
            //TaoCuaSoQLPD();
            $('#txtTuNgay').datepicker({ changeMonth: true, changeYear: true }).datepicker("setDate", new Date());
            $('#txtDenNgay').datepicker({ changeMonth: true, changeYear: true }).datepicker("setDate", new Date());
            $('#txtDSPK_TuNgay').datepicker({ changeMonth: true, changeYear: true }).datepicker("setDate", new Date());
            $('#txtDSPK_DenNgay').datepicker({ changeMonth: true, changeYear: true }).datepicker("setDate", new Date());
            $("#dialog-DSBNCho").dialog({
                autoOpen: false,
                modal: true,
                width: 800,
                height: 550,
                buttons: {
                }
            });

            $("#dialog-KiemTraTuongTacThuoc").dialog({
                autoOpen: false,
                modal: true,
                width: 300,
                height: 250,
                buttons: {
                }
            });

            $('#divChuyenVien_S').dialog({
                autoOpen: false,
                modal: true,
                width: 568,
                buttons: {
                }
            });

            $('#divNhapVien_S').dialog({
                autoOpen: false,
                modal: true,
                width: 568,
                buttons: {
                }
            });

            $('#divDanhSachPhieuKham').dialog({
                autoOpen: false,
                modal: true,
                width: 'auto',
                height: 630,
                buttons: {

                }
            });

            $('#divChiDinh').dialog({
                autoOpen: false,
                modal: true,
                width: 1280,
                minHeight: 630,
                height: 'auto',
                buttons: {

                }
            });

            $('#divDialog').dialog({
                title: 'SỬA THÔNG TIN BỆNH NHÂN',
                autoOpen: false,
                modal: true,
                resizable: false,
                width: 850,
                height: 650,
                beforeClose: function () {
                    $('body').css('overflow', 'auto');
                    //location.reload();
                }
            });

            $('#btnCD').click(function () {
                var mabn = $('#mabn').val();
                var hoten = $('#tenbn').val();
                var tuoi = $('#tuoi').val();
                var ngaysinh = $('#hdfNamSinh').val();
                var gioitinh = $('#rgioitinh').val();
                if (gioitinh == '0') gioitinh = 'Nữ'; else gioitinh = 'Nam';
                var bsChiDinh = $('#tenbs').html();
                var tendichvu = $('#tendv').val();
                var tenkhoa = $('#hid_tenkhoa').val();
                var soBHYT = $('#txtSoBHYT').val();
                var hanBHYT = $('#txtHanBHYT').val();
                var doiTuong = $('#hdf_DoiTuongBN').val();
                var madotkham = $('#hiden_dotkham').val();
                var mapk = $('#mapk').val();
                var makhoa = $('#hid_makhoa').val();
                loadData(makhoa, tendichvu, mabn, hoten, ngaysinh, tuoi, gioitinh, bsChiDinh, tenkhoa, soBHYT, hanBHYT, doiTuong, madotkham, mapk);
                $('#divChiDinh').dialog('open');
            });

            $('#btnThemDongToaThuoc').click(function () {
                //row dau tien la title
                var rowCount = $('#tableToaThuoc tr').length;
                insertNewRowToaThuoc(rowCount);
                setAutoCompleteToInputThuoc();
            });

            $('#bLuuPhacDo').mouseover(function () {
                MoPhacDoMenu();
            });

            $('#pdspk').click(function () {
                loadDanhSachPhieuKham(1, "Search");
                $('#divDanhSachPhieuKham').dialog('open');
            });

            $('#btnTraCuuPhieuKham').click(function () {
                loadDanhSachPhieuKham(1, "Search");
            });

            $("#btnDSBNCho").click(function () {

                loadDanhSachBenhNhanCho();
                $("#dialog-DSBNCho").dialog("open");
            });

            $("#cmdTim").click(function () {
                loadDanhSachBenhNhanCho();
            });

            $('#btnSinhHieu').click(function () {
                loadBangSinhHieu();
            });

            $("#btnSuaThongBN").click(function () {
                loadSuaTTBenhNhan();
            });

            $('#dsxutri').change(function () {
                var value = $(this).val();

                if (value == "nhapvien") {
                    $('#btnTinhTrangGiuong').show();
                }
                else { $('#btnTinhTrangGiuong').hide(); }
                //dsxutri_onchange();
            });

            $("#divNhapVien").dialog({
                title: 'TÌNH TRẠNG GIƯỜNG BỆNH',
                autoOpen: false,
                modal: true,
                resizable: false,
                width: 500,
                height: 500,
                position: ['center']
                //width: 'auto'
            });

            //Mac dinh kiem tra tinh trang giuong se an di, khi nao nhap vien noi tru se hien thi len 
            $('#btnTinhTrangGiuong').hide();
            $('#btnTinhTrangGiuong').click(function () {
                $('#_LoadThongKe').attr('src', 'thongkepk_tinhtranggiuong_popup.aspx');
                //$('#divNhapVien').load('ThongKePK_TinhTrangGiuong_popup.aspx');	            	            
                $('#divNhapVien').dialog('open');
            });

            $(".chan-doan").autocomplete(
            {
                source: function (request, response) {
                    $.ajax({
                        url: "Handler/AutoCompleteICD.ashx",
                        dataType: "xml",
                        contentType: "text/xml; charset:utf-8",
                        data: { prefix: request.term },
                        success: function (xmlResponse) {
                            response($('ChanDoan', xmlResponse).map(function (index) {
                                return {
                                    label: $(this).attr('VVIET'),
                                    value: $(this).attr('VVIET'),
                                    icd: $(this).attr('CICD10')
                                }
                            })
                          );
                        }
                    });
                },
                max: 0,
                highlight: false,
                scroll: true,
                minLength: 0,
                cacheLength: 10,
                scrollHeight: 150,
                select: function (event, ui) {
                    //$('#icd').val(ui.item.icd);
                    var id = $(this).attr('title'); //title của icd gán trên title của textbox chan doan
                    $('#' + id).val(ui.item.icd);
                }
            });

            function btnInPhieuKham_click() {
                /*document.getElementById("btnKhamNhapVien").click();
                var mabn=document.getElementById("mabn").value;
                var txtLiDo_BA=document.getElementById("txtngayvao").value;
                var txtChanDoan_BA=document.getElementById("txtngayra").value;
                var txtQuaTrinh_BA=document.getElementById("txtcd_coso_BA").value;
                var txtTienSuBanThan_BA=document.getElementById("txtcd_pk_BA").value;
                var txtTienSuGiaDinh_BA=document.getElementById("txtcd_pb_BA").value;
                var txtKhamToanThan_BA=document.getElementById("radthetrang_0").checked+"/"+document.getElementById("radthetrang_1").checked+"/"+document.getElementById("radthetrang_2").checked+"/"+document.getElementById("radthetrang_3").checked;
                //alert("/"+txtKhamToanThan_BA);
                //var txtKhamBoPhan_BA=document.getElementById("txtKhamBoPhan_BA").value;
                //var txtDauHieu_BA=document.getElementById("txtDauHieu_BA").value;
                //var txtKhoa_BA=document.getElementById("txtKhoa_BA").value;
                //var txtThuoc_BA=document.getElementById("txtThuoc_BA").value;
                //var txtChuY_BA=document.getElementById("txtChuY_BA").value;
                var link="in_benhlich.aspx?mabn="+mabn+"&txtLiDo_BA="+txtLiDo_BA+"&txtChanDoan_BA="+txtChanDoan_BA+"&txtQuaTrinh_BA="+txtQuaTrinh_BA+"&txtTienSuBanThan_BA="+txtTienSuBanThan_BA+"&txtTienSuGiaDinh_BA="+txtTienSuGiaDinh_BA+"&txtKhamToanThan_BA="+txtKhamToanThan_BA;//+"&txtKhamBoPhan_BA="+txtKhamBoPhan_BA+"&txtDauHieu_BA="+txtDauHieu_BA+"&txtKhoa_BA="+txtKhoa_BA+"&txtThuoc_BA="+txtThuoc_BA+"&txtChuY_BA="+txtChuY_BA+"";	
                window.open(link);*/
                document.getElementById("btnKhamNhapVien").click();
                //			var mabn=document.getElementById("mabn").value;
                //			var txtLiDo_BA=document.getElementById("txtLiDo_BA").value;
                //			var txtChanDoan_BA=document.getElementById("txtChanDoan_BA").value;
                //			var txtQuaTrinh_BA=document.getElementById("txtQuaTrinh_BA").value;
                //			var txtTienSuBanThan_BA=document.getElementById("txtTienSuBanThan_BA").value;
                //			var txtTienSuGiaDinh_BA=document.getElementById("txtTienSuGiaDinh_BA").value;
                //			var txtKhamToanThan_BA=document.getElementById("txtKhamToanThan_BA").value;
                //			var txtKhamBoPhan_BA=document.getElementById("txtKhamBoPhan_BA").value;
                //			var txtDauHieu_BA=document.getElementById("txtDauHieu_BA").value;
                //			var txtKhoa_BA=document.getElementById("txtKhoa_BA").value;
                //			var txtThuoc_BA=document.getElementById("txtThuoc_BA").value;
                //			var txtChuY_BA=document.getElementById("txtChuY_BA").value;
                //			var khoa=document.getElementById("dropNhapVien").options[document.getElementById("dropNhapVien").selectedIndex].text;
                //			var link="phieukhambenhvaovien.aspx?mabn="+mabn+"&txtLiDo_BA="+txtLiDo_BA+"&txtChanDoan_BA="+txtChanDoan_BA+"&txtQuaTrinh_BA="+txtQuaTrinh_BA+"&txtTienSuBanThan_BA="+txtTienSuBanThan_BA+"&txtTienSuGiaDinh_BA="+txtTienSuGiaDinh_BA+"&txtKhamToanThan_BA="+txtKhamToanThan_BA+"&txtKhamBoPhan_BA="+txtKhamBoPhan_BA+"&txtDauHieu_BA="+txtDauHieu_BA+"&txtKhoa_BA="+txtKhoa_BA+"&txtThuoc_BA="+txtThuoc_BA+"&txtChuY_BA="+txtChuY_BA+"&khoa="+khoa+"";	
                //			window.open(link);

            }

            $("#btnSuaThongBN").click(function () {
                var _mabn = $("#mabn").val();
                if (_mabn == "") { return false; }
                $('#ifSuaThongTin').attr('src', "../TiepNhan_QN/SuaThongTinBN.aspx?mabn=" + _mabn + "&mand=" + $("#txtmanv").val());
                $('body').css('overflow', 'hidden');
                $('#divDialog').dialog("open");
            });

            $('#bLayPhieu').click(function () {
                var MaPhieu = $('#mapk').val();
                loadThongTinPhieuKham(MaPhieu);
            });

        });

        function bodyClick() {
            //alert(event.srcElement);
            var pdm = document.all("phacdomenu");
            var clx = event.clientX;
            var cly = event.clientY;
            var pl = pdm.style.posLeft;
            var pr = pl + pdm.offsetWidth;
            var pt = pdm.style.posTop;
            var pb = pt + pdm.offsetHeight;
            if (clx > pl && clx < pr && cly > pt && cly < pb) {
            }
            else {
                document.all("phacdomenu").style.visibility = "hidden";
            }

        }

        function boEnter() {
            var kttype = "button;submit;textarea;";
            var stype = window.event.srcElement.type;
            var sovt = kttype.indexOf(stype + ";");
            if (sovt < 0) {
                //alert(window.event.keyCode);
                if (window.event.keyCode == 13) {
                    window.event.returnValue = false;
                }
            }

        }

        function chayphimtat() {	//s=83,x=88,i=73,l=76,v=86,t=84,e=69,r=82
            if (event.ctrlKey == true || event.altKey == true) {
                event.returnValue = false;
                event.cancelBubble = true;
                //	if (event.keyCode==76){document.all("btluu").click();}
                //	if (event.keyCode==73){document.all("btin").click();}
                if (event.keyCode == 83) { document.all("cnguonthuoc").click(); }
                if (event.keyCode == 82) { document.all("cktthuoc").click(); }
                //	if (event.keyCode==88){document.all("bdsbacsi").click();}
                //	if (event.keyCode==86){document.all("bdsbacsicd").click();}

            }
            if (event.keyCode == 8) { event.keyCode = 0; return event.keyCode; } //bỏ nút back kienlt
        }


    </script>

</head>
<body onkeypress="boEnter();" onkeydown="chayphimtat();" onclick="bodyClick();">
    <form id="form1" runat="server">
        
    	<div id="divBody" style="filter: alpha(opacity=50);height:1024px;width:100%;display:none;position:absolute;z-index:3;background:#002200"></div>
			<table id="Table1" height="100%" width="100%" border="0">
				<tr>
					<td><uc1:menu id="Menu1" runat="server" name="Menu1"></uc1:menu></td>
				</tr>
				<tr>
					<td><uc1:phongkhammenu id="Phongkhammenu1" runat="server"></uc1:phongkhammenu></td>
				</tr>				
				<tr>
					<td class="back" vAlign="middle" align="center" height="100%">
						<table id="Table3" style="border-right: 1px outset; BORDER-TOP: 1px outset; border-left: 1px outset; width: 100%; border-bottom: 1px outset" border="0">
							<tr>
								<td style="border-right: thin; BORDER-TOP: thin; background-image: url(rs/barvs2k5.gif); border-left: thin; border-bottom: thin; height: 21px"
									align="center" bgColor="gray"><asp:label id="Label3" runat="server" Font-Bold="True" Font-Size="X-Small" ForeColor="White"
										Font-Names="Verdana">PHIẾU KHÁM BỆNH</asp:label></td>
							</tr>
							<tr>
								<td class="activeTable" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 3px; height: 775px"
									align="center">
									<table onmousedown="document.getElementById('div_dscho').style.display='none';" id="Table4"
										style="width: 890px; height: 748px; BACKGROUND-COLOR: transparent" 
										 width="890" border="0">
										<tr>
											<td style="height: 6px" colSpan="3"><asp:literal id="ThongBao1" runat="server"></asp:literal>&nbsp;</td>
										</tr>
										<tr>
											<td style="width: 110px; height: 17px"><asp:label id="Label8" runat="server">Ngày Khám</asp:label></td>
											<td style="width: 760px; height: 17px" noWrap colSpan="2"><asp:label id="ngay" runat="server"></asp:label>&nbsp;&nbsp;&nbsp;
                                                <asp:label id="Label14" runat="server" height="8px" Visible="False"> DSBN chờ:</asp:label>
												<asp:textbox id="txtdsbncho" runat="server" Visible="False" width="42px" ></asp:textbox>
                                                <asp:dropdownlist id="danhsachbn" runat="server" Font-Size="8pt" Visible="False" width="36px" ></asp:dropdownlist>
                                                <asp:checkbox id="chkDSBN" runat="server" Visible="False" Text="Tất cả"></asp:checkbox>
                                                <asp:Label ID="Label65" runat="server" Font-Bold="True" ForeColor="#0000C0">Công khám: </asp:Label>
                                                <asp:TextBox ID="tendv" runat="server" BackColor="ActiveBorder" BorderColor="ActiveBorder"
                                                    BorderStyle="None"  Font-Bold="True" Font-Size="Medium" ForeColor="Red"
                                                     ReadOnly="True" width="368px"></asp:TextBox></td>
										</tr>
										<tr>
											<td style="width: 110px"><asp:label id="Label5" runat="server">Mã Phiếu</asp:label></td>
											<td style="width: 760px" colspan="2"><asp:textbox id="mapk" runat="server" width="112px" ></asp:textbox>&nbsp;												
                                                <input type="button" id="bLayPhieu" value="Load phiếu" style="height:20px"/>&nbsp;
												<input id="btnDSBNCho" style="FONT-SIZE: 8pt; width: 88px; height: 20px"
													type="button" value="DSBN Chờ" name="bdspk" />&nbsp;
												<input id="pdspk" style="FONT-SIZE: 8pt; width: 96px; height: 20px"
													type="button" value="DS phiếu khám" name="bdspk" />
												<asp:button id="bPhieuMoi" runat="server" Font-Size="8pt" height="20px" width="72px" CssClass="tbutton"
													Text="Phiếu mới" style="display:none;"></asp:button>&nbsp;
												<asp:button id="btnTaoMaMoi" runat="server" style="display:none;"></asp:button><asp:textbox id="txtmanv" runat="server" style="display:none;"></asp:textbox>
                                                <asp:label id="Label16" runat="server"> Bác sĩ:</asp:label><asp:label id="tenbs" runat="server" Font-Bold="True" ForeColor="Maroon"></asp:label>&nbsp;&nbsp;
                                                <asp:Label ID="lblLoaiKham" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>&nbsp;
                                                <asp:HiddenField ID="hidden_LoaiKham" runat="server" />
												<asp:label id="lblPhieuMoi" runat="server" ForeColor="Red" Visible="False" width="136px">Chưa chọn phiếu mới!</asp:label>
												<asp:textbox id="txtMaBA" runat="server" Font-Bold="True" width="0px" Style="display:none;"  ReadOnly="True"></asp:textbox>
												<asp:label id="lblDoiTuong" runat="server" Font-Size="Medium" Visible="False"></asp:label>
												<asp:textbox id="txtloai_kham_CP" runat="server" style="display:none;" Enabled="True"></asp:textbox>
												<asp:textbox id="txtmapk_chinh" runat="server" style="display:none;"></asp:textbox>
												<asp:textbox id="txtdake" runat="server" style="display:none;"></asp:textbox>
                                                <asp:textbox id="txtdt" runat="server" style="display:none;"></asp:textbox>
                                                <asp:HiddenField ID="hdf_DoiTuongBN" runat="server" />
												<input id="hid_makhoa" type="hidden" runat="server" />
                                                <input id="hid_tenkhoa" type="hidden" name="Hidden1" runat="server" />
												<asp:Label id="lblDrugError" runat="server" ForeColor="Red" Font-Size="Medium" Font-Bold="False"></asp:Label></td>
										</tr>
										<tr>
											<td style="width: 110px; height: 22px" colspan="1" rowspan="1"><asp:label id="Label1" runat="server">Mã bệnh nhân</asp:label></td>
											<td style="height: 22px" nowrap colspan="2">

                                                <asp:textbox id="mabn" runat="server" Font-Bold="True" width="112px" ></asp:textbox>&nbsp;
												<asp:button id="laythongtin" runat="server" height="20px" Text="Load BN" Width="95px"></asp:button>&nbsp;&nbsp;
                                                <input id="bxemhoso" style="visibility: visible; width: 88px; height: 20px" onclick="mocuasocon('benhan.aspx?mabn=' + document.all('mabn').value);"
													type="button" value="Xem hồ sơ" name="bxemhoso">&nbsp;
													<%--<input id="btnSH" style="visibility: visible; width: 96px; height: 20px" onclick="mocuasocon_SH(document.all('mabn').value);"
													type="button" value="Ghi Sinh Hiệu" name="bxemhoso">&nbsp;<input class="tbutton" style="width: 0px" accessKey="C" onclick="cuasochon();" type="button"
													value="...">--%>
													<input id="btnSinhHieu" type="button" style="width:96px; height:20px" value="Ghi Sinh Hiệu" />&nbsp;
													<input id="btnSuaThongBN" type="button" style="width:96px; height:20px" value="Sửa TTBN" title="Sửa thông tin bệnh nhân" />
												<div id="divSinhHieu" class="divSinhHieu" style="display:none;width:1000px;background-color:activeborder;position:absolute;z-index:5;">
	                                                <a style="display:block;float:right;margin-right:4px;" href="#">Đóng X</a>
	                                            </div>	
                                                <iframe id="iframeSinhHieu" src="/" style="width:1000px;height:600;z-index:5;position:absolute;display:none" ></iframe>
	                                            <div id="divInThuoc" class="divInThuoc" style="height:30px;display:none;width:720px;background:#FFFFFF;position:absolute;z-index:5;">
	                                                <input type="button" value="In ra" title="In dữ liệu" style="display:block;width:40px;" onclick="myPrint()"/>
	                                                <a style="display:block;float:right;margin-right:4px;margin-top:-23px;" href="#" onclick="CloseInThuoc();">Đóng X</a>
	                                            </div>
	                                                <iframe id="ifrInTThuoc" style="width:720px;height:600;z-index:5;position:absolute;display:none" ></iframe>
	                                            
													&nbsp;
												<asp:button id="bbnmoi" accessKey="M" runat="server" Visible="False" width="0px" CssClass="tbutton"
													Text="BN (M)ới"></asp:button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<asp:label id="lblBHYT" runat="server" ForeColor="Red" Visible="False" width="389px"></asp:label>&nbsp;&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td style="width: 110px"><asp:label id="lblhoten" runat="server">Họ Tên</asp:label></td>
											<td style="width: 760px" noWrap align="left" colSpan="2"><asp:textbox id="tenbn" runat="server" Font-Bold="True" ForeColor="#0000C0" width="216px" 
													ReadOnly="True" BackColor="ActiveBorder" BorderColor="ActiveBorder" BorderStyle="None"></asp:textbox><asp:label id="label222" runat="server">Tuổi</asp:label>&nbsp;<asp:textbox id="tuoi" runat="server" Font-Bold="True" ForeColor="#0000C0" width="24px" 
													ReadOnly="True" BackColor="ActiveBorder" BorderStyle="None"></asp:textbox>&nbsp;
                                                    <asp:HiddenField ID="hdfNamSinh" runat="server" />
                                                    <asp:label id="gioitinhlbl" runat="server">Giới tính</asp:label>
                                                    <asp:radiobuttonlist id="rgioitinh" runat="server" height="20px" RepeatDirection="Horizontal" RepeatLayout="Flow">
												    <asp:ListItem Value="0" Selected="True">Nữ</asp:ListItem>
													<asp:ListItem Value="1">Nam</asp:ListItem>													
												</asp:radiobuttonlist>&nbsp;&nbsp;&nbsp;
												<asp:label id="Label25" runat="server">Số BHYT</asp:label>&nbsp;<asp:textbox id="txtSoBHYT" runat="server" Font-Bold="True" ForeColor="#0000C0" width="148px"
													ReadOnly="True" BackColor="ActiveBorder" BorderStyle="None"></asp:textbox>
												<asp:label id="Label26" runat="server">Hạn BH</asp:label>&nbsp;<asp:textbox id="txtHanBHYT" runat="server" Font-Bold="True" ForeColor="#0000C0" width="72px"
													ReadOnly="True" BackColor="ActiveBorder" BorderStyle="None"></asp:textbox></td>
										</tr>
										<tr>
											<td style="width: 110px; height: 22px"><asp:label id="Label4" runat="server">Địa chỉ</asp:label></td>
											<td style="height: 22px" noWrap colSpan="2"><asp:textbox id="diachi" runat="server" Font-Bold="True" ForeColor="#0000C0" width="512px" 
													ReadOnly="True" BackColor="ActiveBorder" BorderStyle="None"></asp:textbox>&nbsp;</td>
										</tr>
										<tr>
											<td style="width: 110px" vAlign="top"><asp:label id="Label7" runat="server">Triệu chứng</asp:label></td>
											<td style="width: 346px" colSpan="1"><asp:textbox id="trieuchung" runat="server" height="65px" width="373px"  TextMode="MultiLine"></asp:textbox></td>
											<td style="width: 419px" vAlign="top" align="center">
												<table id="Table6" style="width: 404px; height: 56px" cellSpacing="1" cellPadding="1" width="404"
													border="0">
													<tr>
														<td style="width: 60px"><asp:label id="Label22" runat="server" width="24px">Mạch:</asp:label></td>
														<td style="width: 102px"><asp:label id="mach" runat="server" Font-Bold="True" width="20px"></asp:label>&nbsp;
															<asp:label id="Label63" runat="server" Font-Size="XX-Small" width="24px">lần/phút</asp:label></td>
														<td style="width: 71px"><asp:label id="Label36" runat="server" width="72px">Nhiệt độ</asp:label></td>
														<td><asp:label id="lblNhietDo" runat="server" Font-Bold="True" width="64px"></asp:label>&nbsp;
															<asp:label id="Label64" runat="server" Font-Size="XX-Small" width="40px">độ C</asp:label></td>
													</tr>
													<tr>
														<td style="width: 60px"><asp:label id="Label23" runat="server">Huyết áp: </asp:label></td>
														<td style="width: 102px"><asp:label id="huyetap" runat="server" Font-Bold="True" width="48px"></asp:label>&nbsp;<asp:label id="Label52" runat="server" Font-Size="XX-Small" width="24px">mmHg</asp:label></td>
														<td style="width: 71px"><asp:label id="Label24" runat="server">Nhịp thở:</asp:label></td>
														<td><asp:label id="nhiptho" runat="server" Font-Bold="True" width="64px"></asp:label><asp:label id="Label53" runat="server" Font-Size="XX-Small" width="24px">lần/phút</asp:label></td>
													</tr>
												</table>
												&nbsp;&nbsp;</td>
										</tr>
										<tr>
											<td style="width: 110px; height: 25px;"><asp:label id="lblChanDoanSoBo" runat="server">Chẩn đoán sơ bộ</asp:label></td>
											<td style="width: 760px; height: 25px;" colSpan="2">
											    <asp:textbox id="txtChanDoanSoBo" runat="server" height="21px" width="504px" ></asp:textbox>
											    <input id="btnKT" style="width: 128px; height: 24px" type="button" value="Chuyển khám" onclick="mocuasocon_Luu('0', 'btnKT');" />
												<input id="btnCD" style="width: 88px; height: 24px" type="button" value="Chỉ Định"/>&nbsp;
												<asp:button id="btnLuuKhongXoaDSCho" runat="server" style="display:none;" onclick="btnLuuKhongXoaDSCho_Click"></asp:button>
												<asp:button id="btnthemdonthuoc" runat="server" style="display:none;"></asp:button>
												<asp:textbox id="txtktckhoa" runat="server" style="display:none;"></asp:textbox>
										    </td>
										</tr>
										<tr>
											<td style="width: 110px"><asp:label id="Label2" runat="server">Chẩn đoán</asp:label></td>
											<td style="width: 760px" colSpan="2">
											    <asp:textbox id="icd" runat="server" width="61px" ></asp:textbox>
                                                <asp:dropdownlist id="cbochandoan" runat="server" Visible="True" width="80px"></asp:dropdownlist>
                                                <asp:textbox id="chandoan" ToolTip="icd" CssClass="chan-doan" tabIndex="1" runat="server" width="541px" ></asp:textbox>&nbsp;
											    <input class="tbutton" id="btracuu1" style="width: 32px; height: 20px" onclick="cuaSoTraCuu('chandoan', 'icd');" tabIndex="1" type="button" value="ICD" name="btracuu1">
										    </td>
										</tr>
										<tr>
											<td style="width: 110px; height: 22px" noWrap><asp:label id="Label10" runat="server">Chẩn đoán phụ 1</asp:label></td>
											<td style="width: 760px; height: 22px" colSpan="2"><asp:textbox id="icdphu1" runat="server" width="61px" ></asp:textbox>
                                                <asp:dropdownlist id="cbochandoan1" runat="server" width="80px"></asp:dropdownlist>
                                                <asp:textbox id="chandoanphu1" ToolTip="icdphu1" CssClass="chan-doan" tabIndex="1" runat="server" width="541px" ></asp:textbox>&nbsp;
                                                <input class="tbutton" id="btracuu2" style="width: 32px; height: 20px" onclick="cuaSoTraCuu('chandoanphu1', 'icdphu1');"
													tabIndex="1" type="button" value="ICD" name="btracuu2">
											</td>
										</tr>
										<tr>
											<td style="width: 110px; height: 20px" noWrap><asp:label id="Label11" runat="server">Chẩn đoán phụ 2</asp:label></td>
											<td style="width: 760px; height: 20px" colSpan="2">
                                                <asp:textbox id="icdphu2"  CssClass="chan-doan" runat="server" width="61px" ></asp:textbox>
                                                <asp:dropdownlist id="cbochandoan2" runat="server" width="80px"></asp:dropdownlist>
                                                <asp:textbox id="chandoanphu2" CssClass="chan-doan" ToolTip="icdphu2" tabIndex="1" runat="server" width="541px" ></asp:textbox>&nbsp;
                                                <input class="tbutton" id="btracuu3" style="width: 32px; height: 20px" onclick="cuaSoTraCuu('chandoanphu2', 'icdphu2');"
													tabIndex="1" type="button" value="ICD" name="btracuu3" />
											</td>
										</tr>
										<tr>
											<td style="width: 110px; height: 12px"><asp:label id="Label6" runat="server">Xử trí</asp:label></td>
											<td style="width: 760px; height: 12px" colSpan="2">
											    <asp:dropdownlist id="dsxutri" runat="server" width="144px">
													<asp:ListItem Value="0">---Chưa xử l&#253;---</asp:ListItem>
													<asp:ListItem Value="ketoa">K&#234; toa</asp:ListItem>
													<asp:ListItem Value="chove">Cho về (tư vấn)</asp:ListItem>
													<asp:ListItem Value="nhapvien">Nhập viện nội tr&#250;</asp:ListItem>
													<asp:ListItem Value="gioithieu">Chuyển viện - Giới thiệu nơi kh&#225;c</asp:ListItem>
													<asp:ListItem Value="bokham">BN bỏ kh&#225;m</asp:ListItem>
                                                    <asp:ListItem Value="ngoaitru">Điều trị ngoại tr&#250;</asp:ListItem>
												</asp:dropdownlist>												
												<input type="button" id="btnTinhTrangGiuong" value="Tình trạng giường" />
												<div id="div_chuyenkhoa" style="display: inline; Z-INDEX: 100; visibility: visible; POSITION: absolute; height: 22px">
												<asp:label id="Label54" runat="server">Chuyển đến chuyên khoa : </asp:label><asp:dropdownlist id="drkhamchuyenkhoa" runat="server"></asp:dropdownlist><input id="btnIn" style="display:none;" onclick="InChuyenkhoa()" type="button" value="In"></div>
                                                </td>
										</tr>
                                        <tr>
											<td colspan="3">
                                                <div id="divKeToa" style="display:none;">
                                                      <div id="divPanelToaThuoc" style="border:1px solid gray;padding-top:5px; padding-bottom:5px;">
                                                    <table>
                                                        <tr>
											                <td style="width: 110px; height: 5px"><asp:label id="Label17" runat="server">Đơn thuốc mẫu</asp:label><BR>
												                <div id="div_icd" style="display: none; width: 541px; POSITION: absolute; height: 88px">
													                <div style="POSITION: relative">
														                <div id="div_ds_icd" style="border-right: #203050 1px solid; PADDING-RIGHT: 4px; BACKGROUND-POSITION: 50% top; BORDER-TOP: #203050 1px solid; PADDING-LEFT: 4px; FILTER: progid: DXImageTransform.Microsoft.Shadow(color=gray, direction=135, strength=16); PADDING-BOTTOM: 4px; border-left: #203050 1px solid; width: 541px; PADDING-TOP: 4px; border-bottom: #203050 1px solid; BACKGROUND-REPEAT: repeat-x; POSITION: relative; height: 110px; BACKGROUND-COLOR: activeborder"></div>
													                </div>
												                </div>
											                </td>
											                <td style="width: 760px; height: 5px" colSpan="2"><asp:dropdownlist id="dsphacdo" runat="server" width="144px"></asp:dropdownlist>
                                                                <input id="Button3" style="display:none;" type="button" value="Thêm đơn thuốc" name="donthuocu" />
                                                                <asp:button id="btnThuoc" runat="server" width="112px" Text="Thuốc Cấp Cứu" style="display:none;"></asp:button>&nbsp;
                                                                <input id="donthuoccu" style="width: 96px; height: 24px" type="button" value="Đơn thuốc cũ" name="donthuoccu" onclick="laytoacu();"/>
                                                                <input id="Button4" style="height: 24px" type="button" value=" Kê khai thuốc vật tư trong gói " name="donthuoccu" onclick="kevattu();"/>&nbsp;
                                                                <%--<asp:checkbox id="cktthuoc" runat="server" Text="Kiểm tra thành phần thuốc" Checked="True"></asp:checkbox>--%>
                                                                <input type="checkbox" id="chkTPThuoc" checked="checked"/> Kiểm tra thành phần thuốc                                                                
                                                                <asp:checkbox id="cnguonthuoc" runat="server" Text="Thuốc Bảo Hiểm" Enabled="False"></asp:checkbox>
                                                                <asp:dropdownlist id="dropKho" runat="server" Font-Bold="True" Visible="False" width="152px" AutoPostBack="True"></asp:dropdownlist>
												                <asp:textbox id="txtSLKT" runat="server" style="display:none;"></asp:textbox></td>
										                </tr>
                                                    </table>
                                                    
                                                    <table id="tableToaThuoc" style="border-right: gray 1px solid; BORDER-TOP: gray 1px solid; border-left: gray 1px solid; width: 100%; border-bottom: gray 1px solid; BORDER-COLLAPSE: collapse; height: auto" border="0">
													    <thead style="background-image: url(rs/barclassic24.jpg); border-bottom-width: 1px; border-bottom-COLOR: gray; width: 100%; height: 21px">
                                                            <tr style="font-size:x-small; text-align:center">
                                                                <th style="width: 18px">STT</th>
                                                                <th style="width: 240px">Tên thuốc</th>
                                                                <th style="width: 40px">SL</th>
                                                                <th style="width: 48px">Đơn vị</th>
                                                                <th style="width: 80px">Cách dùng</th>
                                                                <th style="width: 56px">Lần dùng</th>
                                                                <th style="width: 72px">Lượng dùng</th>
                                                                <th style="width: 72px">ĐV dùng</th>
                                                                <th style="width: 72px">Ghi chú</th>
                                                                <th style="width: 27px">Giá</th>
                                                                <th style="width: 100px">
                                                                    <asp:imagebutton id="bLuuPhacDo" runat="server" height="14px" width="14px" ImageUrl="rs/save.gif" OnClientClick="return false;"></asp:imagebutton>&nbsp;
																	<asp:imagebutton id="bExpand" runat="server" ImageUrl="rs/expand.gif"></asp:imagebutton>
                                                                </th>
                                                            </tr>                                                                    

													    </thead>
                                                        <tbody>                                                                                                             
                                                        </tbody>                                                               
                                                       
												    </table>                                                            
										        <asp:label id="time" runat="server"></asp:label><input id="hid_dbnameS" style="width: 88px; height: 22px" type="hidden" size="9" name="Hidden1"
											        runat="server" /><input id="loaicd" type="hidden" name="loaicd" runat="server" />
										        <asp:textbox id="txtluu" runat="server" style="display:none;"></asp:textbox>
										        <asp:literal id="Literal1" runat="server"></asp:literal>
										        <asp:textbox id="txtclick_chon" runat="server" style="display:none;"></asp:textbox>
										        <asp:textbox id="txtclick_chon_stt" runat="server" style="display:none;"></asp:textbox>
										        <asp:textbox id="txtmaphieucu" runat="server" style="display:none;"></asp:textbox>
                                            
                                                </div>
                                                                                                          
												    <div style="text-align:right;">
                                                        <input id="btnThemDongToaThuoc" type="button" value="+ Thêm dòng" style="float:left"/>                                                    
                                                        <span style=" margin-right:50px">
                                                            <label>TỔNG</label>
                                                            <input id="TongTienToaThuoc" type="text" style="width:72px; font-weight:bold; color:Red" value="0"/>
                                                            VND
                                                        </span>
                                                        <br />
                                                        <span style="color:red;float:left">*Màu đỏ: Thuốc có hoạt chất trùng với các thuốc còn lại trong toa</span>  
												    </div>
                                                    <hr />                                            
                                                </div>                                                                                                                                                                                                          
											</td>
										</tr>
									
										<tr>
											<td style="width: 110px"><asp:label id="Label9" runat="server">Chỉ định điều trị</asp:label></td>
											<td style="width: 760px" colSpan="2"><asp:textbox id="chidinhdieutri" runat="server" width="704px" ></asp:textbox></td>
										</tr>
										<tr>
											<td style="width: 110px"><asp:label id="Label12" runat="server">Lời dặn BS</asp:label></td>
											<td style="width: 760px" colSpan="2"><asp:textbox id="loidanbs" runat="server" width="704px" >Hết thuốc hay có gì bất thường xin vui lòng đến khám lại</asp:textbox></td>
										</tr>
										<tr>
											<td style="width: 110px"><asp:label id="Label13" runat="server">Nội dung tái khám</asp:label></td>
											<td style="width: 760px" colSpan="2"><asp:textbox id="taikham" runat="server" width="360px"  MaxLength="300"></asp:textbox>
											<asp:label id="Label49" runat="server">Tái khám sau:</asp:label>
											<asp:textbox id="txtstk" runat="server" width="32px"  MaxLength="2"></asp:textbox>
											Ngày<asp:textbox id="txtNgay" runat="server" width="80px"  MaxLength="10">
											</asp:textbox>&nbsp;<asp:textbox id="txtGio" runat="server" width="32px"  MaxLength="2"></asp:textbox>
											<asp:label id="Label50" runat="server">giờ</asp:label>
											<asp:textbox id="txtPhut" runat="server" width="32px"  MaxLength="2"></asp:textbox>
											<asp:label id="Label51" runat="server">phút</asp:label>
											<input id="hiden_dotkham" style="width: 24px; height: 22px" type="hidden" size="1" runat="server" /></td>
										</tr>
									</table>
									<asp:literal id="lenhInToa" runat="server" EnableViewState="False"></asp:literal><input id="hsodong" style="width: 32px; height: 22px" type="hidden" size="1" name="hsodong"
										runat="server" />
										<%--<input style="width: 32px; height: 22px" type="hidden" value="<%Response.Write(sodong.ToString());%>" name="sodong" />--%>
										<input id="hKieuLuu" style="width: 32px; height: 22px" type="hidden" size="1" value="moi" name="hKieuLuu" runat="server" />
                                        <input id="hbnmoi" style="width: 32px; height: 22px" type="hidden" size="1" name="hbnmoi" runat="server" />
										<input id="hmabs" style="width: 32px; height: 22px" type="hidden" size="1" name="hmabs" runat="server" />
										<input id="hcobn" style="width: 32px; height: 22px" type="hidden" size="1" name="hcobn" runat="server">
										<input id="idthu" style="width: 40px; height: 22px" type="hidden" size="1" name="idthu"
										runat="server">
									<asp:literal id="ThongBao" runat="server" EnableViewState="False"></asp:literal><asp:button id="thembutton" runat="server" Visible="False" width="25px" CssClass="tbutton" Text="+" ></asp:button>
									<div id="div_dscho" style="display: none; width: 470px; POSITION: absolute; height: 180px">
										<div style="POSITION: relative">
											<div id="div_dsc_con" style="border-right: #203050 1px solid; PADDING-RIGHT: 4px; BACKGROUND-POSITION: 50% top; BORDER-TOP: #203050 1px solid; PADDING-LEFT: 4px; FILTER: progid: DXImageTransform.Microsoft.Shadow(color=gray, direction=135, strength=16); PADDING-BOTTOM: 4px; border-left: #203050 1px solid; width: 470px; PADDING-TOP: 4px; border-bottom: #203050 1px solid; BACKGROUND-REPEAT: repeat-x; POSITION: relative; height: 132px; BACKGROUND-COLOR: activeborder"></div>
										</div>
									</div>
								</td>
							</tr>
							<tr>
								<td class="activeTable" style="PADDING-RIGHT: 5px; BORDER-TOP: gray 1px solid; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; PADDING-TOP: 5px"
									vAlign="baseline" align="center"><asp:label id="Label15" runat="server" width="160px">Di chuyển:Ctrl + mũi tên </asp:label>
									<%--<div id="divNgoai" style="display: none; visibility: hidden; width: 579px; POSITION: absolute; height: 318px">
										<div style="POSITION: relative">
											<div id="divContent" style="border-right: #203050 1px solid; BACKGROUND-POSITION: 50% top; BORDER-TOP: #203050 1px solid; FILTER: progid: DXImageTransform.Microsoft.Shadow(color=gray, direction=135, strength=16); visibility: visible; border-left: #203050 1px solid; width: 575px; border-bottom: #203050 1px solid; BACKGROUND-REPEAT: repeat-x; height: 302px; BACKGROUND-COLOR: activeborder">
												<table id="TableTomTat" style="LEFT: 5px; width: 568px; POSITION: absolute; TOP: 50px"
													   border="0">
													<tr>
														<td style="width: 335px"><asp:label id="Label35" runat="server">Chuyển đến bệnh viện</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtChuyenDenBV" runat="server" width="328px" ></asp:textbox><BR>
															<div id="div_dsbv" style="display: none; width: 329px; POSITION: absolute; height: 88px">
																<div style="POSITION: relative">
																	<div id="div_dsc_bv" style="border-right: #203050 1px solid; PADDING-RIGHT: 4px; BACKGROUND-POSITION: 50% top; BORDER-TOP: #203050 1px solid; PADDING-LEFT: 4px; FILTER: progid: DXImageTransform.Microsoft.Shadow(color=gray, direction=135, strength=16); PADDING-BOTTOM: 4px; border-left: #203050 1px solid; width: 328px; PADDING-TOP: 4px; border-bottom: #203050 1px solid; BACKGROUND-REPEAT: repeat-x; POSITION: relative; height: 110px; BACKGROUND-COLOR: activeborder"></div>
																</div>
															</div>
														</td>
													</tr>
													<tr>
														<td style="width: 335px"><asp:label id="Label21" runat="server">Dấu hiệu lâm sàng</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtDauHieu" runat="server" width="328px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 335px"><asp:label id="Label27" runat="server">Các xét nghiệm</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtXetNghiem" runat="server" width="328px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 335px"><asp:label id="Label28" runat="server">Chẩn đoán</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtChanDoan" runat="server" width="328px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 335px"><asp:label id="Label29" runat="server">Thuốc đã dùng</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtThuoc" runat="server" width="328px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 335px"><asp:label id="Label30" runat="server">Tình trạng người bệnh lúc chuyển viện</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtTinhTrang" runat="server" width="328px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 335px"><asp:label id="Label31" runat="server">Lí do chuyển viện</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtLiDo" runat="server" width="328px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 335px"><asp:label id="Label32" runat="server">Phương tiện vận chuyển</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtPhuongTien" runat="server" width="328px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 335px"><asp:label id="Label33" runat="server">Họ tên, chức danh người đưa đi</asp:label></td>
														<td style="width: 350px"><asp:textbox id="txtNguoiDua" runat="server" width="328px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 335px" align="right"><asp:button id="btnLuuTTChuyenVien" runat="server" width="0px" Text="Button" ></asp:button>
                                                            <input id="btnInGiayChuyenVien" type="button" value="In giấy chuyển viện"
																name="btnInGiayChuyenVien" /></td>
														<td style="width: 350px"><input onclick="xoaDivCV();" type="button" value="Hủy"></td>
													</tr>
												</table>
												<table id="TableBA" style="width: 100%" height="22"   background="rs\barvs2k5.gif"
													border="0">
													<tr>
														<td style="width: 555px" align="center"><asp:label id="Label34" runat="server" ForeColor="White">THÔNG TIN CHUYỂN VIỆN</asp:label></td>
														<td align="center"><IMG id="img1" onmouseover="this.style.backgroundColor='gray'" style="background-image: none; width: 16px; CURSOR: hand; height: 16px"
																onclick="anDivCV();" onmouseout="this.style.backgroundColor='transparent'" height="16" alt="" src="rs/close.gif"
																width="16" border="0"></td>
													</tr>
												</table>
											</div>
										</div>
									</div>--%>
									&nbsp;
                                    <%--<asp:Button ID="btnLuu" runat="server" Text="Lưu" OnClick="btnLuu_Click" /> &nbsp;
                                    <asp:Button ID="btnLuuVaIn" runat="server" Text="Lưu và (X)em toa" OnClick="btnLuuVaIn_Click" /> &nbsp;--%>
                                    <input id="btnLuu" accessKey="L" onclick="LuuToaThuoc();" type="button" value="(L)ưu" name="Button1" />
                                    <input type="button" id="btnCapNhat" style="display:none" value="Cập nhật"/>&nbsp;
                                    <input id="btnLuuVaIn" accessKey="X" onclick="ktraform('Button2', 'luuin');" type="button" value="Lưu và (X)em toa" name="Button2" />
                                    <input type="button" id="btnCapNhatVaIn" style="display:none" value="Cập nhật và (X)em toa"/>
                                    &nbsp;
										<input type="button" id="btnKiemTraTuongTacThuoc" value="Kiểm Tra Tương Tác Thuốc" onclick="kiemTraTuongTacThuoc();" />
                                    
									<%--<div id="divNgoaiBA_0" style="display: none; width: 537px; POSITION: absolute; height:
									 345px">
										<div style="POSITION: relative">
											<div id="divContentBA_0" style="border-right: #203050 1px solid; PADDING-RIGHT: 0px; BACKGROUND-POSITION: 50% top; BORDER-TOP: #203050 1px solid; PADDING-LEFT: 0px; FILTER: progid: DXImageTransform.Microsoft.Shadow(color=gray, direction=135, strength=16); visibility: visible; PADDING-BOTTOM: 0px; border-left: #203050 1px solid; width: 534px; PADDING-TOP: 0px; border-bottom: #203050 1px solid; BACKGROUND-REPEAT: repeat-x; height: 329px; BACKGROUND-COLOR: activeborder"
												align="left">
												<table id="Table9" height="22"   width="100%" background="rs/barvs2k5.gif"
													border="0">
													<tr>
														<td style="width: 575px" align="center"><asp:label id="Label55" runat="server" ForeColor="White">TÓM TẮT BỆNH ÁN</asp:label></td>
														<td><img id="Img2" onmouseover="this.style.backgroundColor='gray'" style="background-image: none; width: 16px; CURSOR: hand; height: 16px"
																onclick="anDivBA();" onmouseout="this.style.backgroundColor='transparent'" height="16"
																alt="" src="rs/close.gif" width="16" border="0"></td>
													</tr>
												</table>
												<table id="Table7" border="0" style="height:auto">
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label61" runat="server">Lí do vào viện</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtLiDo_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label60" runat="server">Chẩn đoán</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtChanDoan_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label59" runat="server">Quá trình bệnh lí</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtQuaTrinh_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label58" runat="server" width="136px">Tiền sử bệnh bản thân</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtTienSuBanThan_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label57" runat="server">Tiền sử bệnh gia đình</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtTienSuGiaDinh_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label56" runat="server">Khám toàn thân</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtKhamToanThan_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label43" runat="server">Khám bộ phận</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtKhamBoPhan_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px; height: 25px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label44" runat="server">Dấu hiệu lâm sàng</asp:label></td>
														<td style="width: 363px; height: 25px"><asp:textbox id="txtDauHieu_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label45" runat="server">Thuốc đã dùng</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtThuoc_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label46" runat="server">Cho điều trị tại khoa</asp:label></td>
														<td style="width: 363px"><asp:label id="Label62" runat="server" width="80px">Khoa nội trú: </asp:label>
                                                            <asp:dropdownlist id="dropNhapVien" runat="server" width="200px"></asp:dropdownlist>
                                                            <asp:textbox id="txtKhoa_BA" runat="server" width="0px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161">&nbsp;&nbsp; -
															<asp:label id="Label47" runat="server">Chú ý</asp:label></td>
														<td style="width: 363px"><asp:textbox id="txtChuY_BA" runat="server" width="360px" ></asp:textbox></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161" height="10"></td>
														<td style="width: 363px" height="10"></td>
													</tr>
													<tr>
														<td style="width: 161px" width="161"></td>
														<td style="width: 363px"><input id="btnNhapvien" style="width: 190px" onclick="btnInPhieuKham_click();" type="button"
																value="Lưu &amp; In phiếu khám nhập viện"><input  type="button" value="Hủy">
															<asp:button id="btnKhamNhapVien_0" runat="server" width="0px"></asp:button></td>
													</tr>
												</table>
											</div>
										</div>
									</div>--%>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><uc1:about id="About1" runat="server"></uc1:about>
						<div id="divNgoaiBA" style="display: none; width: 563px; POSITION: absolute; height: 230px">
							<div style="POSITION: relative">
								<div id="divContentBA" style="border-right: #203050 1px solid; BACKGROUND-POSITION: 50% top; BORDER-TOP: #203050 1px solid; FILTER: progid: DXImageTransform.Microsoft.Shadow(color=gray, direction=135, strength=16); visibility: visible; border-left: #203050 1px solid; width: 561px; border-bottom: #203050 1px solid; BACKGROUND-REPEAT: repeat-x; POSITION: absolute; height: 222px; BACKGROUND-COLOR: activeborder">
									<table id="TableBA2" height="22" width="100%" background="rs/barvs2k5.gif"
										border="0">
										<tr>
											<td style="width: 539px" align="center"><asp:label id="Label48" runat="server" ForeColor="White">BỆNH LỊCH</asp:label></td>
											<td align="center"><IMG id="imgBA" onmouseover="this.style.backgroundColor='gray'" style="background-image: none; width: 16px; CURSOR: hand; height: 16px"
													onclick="anDivBA();" onmouseout="this.style.backgroundColor='transparent'" height="16" alt="" src="rs/close.gif"
													width="16" border="0"></td>
										</tr>
									</table>
									<table id="TableBA1" style="width: 552px; height: 200px" border="0">
										<tr>
											<td style="width: 165px" height="20"></td>
											<td style="width: 379px" height="20"></td>
										</tr>
										<tr>
											<td style="width: 165px" height="25">&nbsp;&nbsp;
												<asp:label id="Label41" runat="server">- Ngày vào</asp:label></td>
											<td style="width: 379px" height="25"><asp:textbox id="txtngayvao" runat="server" width="96px" ></asp:textbox>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
												<asp:label id="Label42" runat="server">- Ngày ra</asp:label><asp:textbox id="txtngayra" runat="server" width="96px" ></asp:textbox></td>
										</tr>
										<tr>
											<td style="width: 165px" height="25">&nbsp;&nbsp;
												<asp:label id="Label37" runat="server">- Chẩn đoán của cơ sở</asp:label></td>
											<td style="width: 379px" height="25"><asp:textbox id="txtcd_coso_BA" runat="server" width="383px" ></asp:textbox></td>
										</tr>
										<tr>
											<td style="width: 165px" height="25">&nbsp;&nbsp;
												<asp:label id="Label38" runat="server">- Chẩn đoán phòng khám</asp:label></td>
											<td style="width: 379px" height="25"><asp:textbox id="txtcd_pk_BA" runat="server" width="383px" ></asp:textbox></td>
										</tr>
										<tr>
											<td style="width: 165px" height="25">&nbsp;&nbsp;
												<asp:label id="Label39" runat="server">- Chẩn đoán phòng bệnh</asp:label></td>
											<td style="width: 379px" height="25"><asp:textbox id="txtcd_pb_BA" runat="server" width="383px" ></asp:textbox></td>
										</tr>
										<tr>
											<td style="width: 165px" height="25">&nbsp;&nbsp;
												<asp:label id="Label40" runat="server">- Thể trạng khi ra</asp:label></td>
											<td style="width: 379px" height="25"><asp:radiobuttonlist id="radthetrang" runat="server" width="248px" RepeatDirection="Horizontal" RepeatLayout="Flow">
													<asp:ListItem Value="khoi">Khỏi</asp:ListItem>
													<asp:ListItem Value="doo">Đỡ</asp:ListItem>
													<asp:ListItem Value="nguy">Nguy kịch</asp:ListItem>
													<asp:ListItem Value="chet">Chết</asp:ListItem>
												</asp:radiobuttonlist></td>
										</tr>
										<tr>
											<td style="width: 165px" height="25"></td>
											<td style="width: 379px" height="25"><asp:button id="btnKhamNhapVien" runat="server" width="0px" Style="display:none"></asp:button>
                                                <input style="width: 88px; height: 24px" onclick="btnInPhieuKham_click();" type="button"
													value="In bệnh lịch" /></td>
										</tr>
									</table>
								</div>
							</div>
						</div>
					</td>
				</tr>
			</table>	    
        
        <div id="divNhapVien" title="tieudethongke">            
            <iframe id="_LoadThongKe" scrolling="auto" marginheight="5px" marginwidth="5px" title="Thống kê tình trạng giường bệnh"  width="100%" height="100%" frameborder="0"></iframe>
        </div>
		
        <div id="divChuyenVien" style="DISPLAY: none; Z-INDEX: 103; VISIBILITY: hidden; WIDTH: 520px; POSITION: absolute; HEIGHT: 12px">
            <asp:dropdownlist id="dropTinh" runat="server" Width="144px"></asp:dropdownlist>&nbsp;
			<asp:textbox id="txtBV" runat="server" Width="64px"></asp:textbox>
            <SPAN id="spanBV">
                <asp:dropdownlist id="dropBV" runat="server" EnableViewState="True" Width="200px"></asp:dropdownlist>
            </SPAN>
		</div>

		<div id="divNoiTru" style="DISPLAY: none; Z-INDEX: 104; VISIBILITY: hidden; WIDTH: 520px; POSITION: absolute; HEIGHT: 12px">
            <asp:label id="label_0" runat="server">Khoa: </asp:label>
            <asp:label id="label_1" runat="server">Số NV:</asp:label>
            <asp:textbox id="txtMaNhapVien" Width="100px" Runat="server"></asp:textbox>
            <asp:label id="label_2" runat="server">  Ngày nhập viện:</asp:label>
            <asp:textbox id="txtNgayNhapVien" Width="80px" Runat="server"></asp:textbox>
		</div>	
        		
        <div id="dialog-KiemTraTuongTacThuoc" title="KIỂM TRA TƯƠNG TÁC THUỐC" style="font-size:80%">
            <div>
				<span id="txtMessageInfo" ></span>
            </div>
        </div>   
         
        <div id="dialog-DSBNCho" title="Danh Sách Bệnh Nhân Chờ" style="font-size:80%">
                <asp:TextBox ID="txtMaKhoa" runat="server" CssClass="none-display"></asp:TextBox>
                <div>
                    <table>
                        <tr>
                            <td style="padding-left:5px; padding-right:5px">
                                Mã BN
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtMaBN" Width="75px"></asp:TextBox>
                            </td>
                            <td style="padding-left:5px; padding-right:5px">
                                Họ tên
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtHoTen" Width="150px"></asp:TextBox>
                            </td>
                            <td style="padding-left:5px; padding-right:5px">
                                Từ ngày
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtTuNgay" Width="75px"></asp:TextBox>
                            </td>
                            <td style="padding-left:5px; padding-right:5px;">
                                Đến ngày
                            </td>
                            <td>
                                <asp:TextBox runat="server" ID="txtDenNgay" Width="75px"></asp:TextBox>
                            </td>
                            <td style="padding-left:5px; padding-right:5px;">
                                <asp:Button runat="server" ID="cmdTim" Text="Tìm" Width="50px" />
                            </td>
                        </tr>
                    </table>
                </div>
                <br />
                <div>
					<table id="tblDSBNCho" cellpadding="0" cellspacing="0">
                        <tr>
                            <th style="height:30px;font-size:12px;
                                       border-top: solid 1px #AAAAAA;
                                       border-bottom: solid 1px #AAAAAA;
                                       border-left: solid 1px #AAAAAA;">
                                STT
                            </th>
                            <th style="height:30px;font-size:12px;
                                       border-top: solid 1px #AAAAAA;
                                       border-bottom: solid 1px #AAAAAA;
                                       border-left: solid 1px #AAAAAA;">
                                Ngày Đăng Ký
                            </th>
                            <th style="height:30px;font-size:12px;
                                       border-top: solid 1px #AAAAAA;
                                       border-bottom: solid 1px #AAAAAA;
                                       border-left: solid 1px #AAAAAA;">
                                MaBN
                            </th>
                            <th style="height:30px;font-size:12px;
                                       border-top: solid 1px #AAAAAA;
                                       border-bottom: solid 1px #AAAAAA;
                                       border-left: solid 1px #AAAAAA;">
                                Họ Tên
                            </th>
                            <th style="height:30px;font-size:12px;
                                       border-top: solid 1px #AAAAAA;
                                       border-bottom: solid 1px #AAAAAA;
                                       border-left: solid 1px #AAAAAA;">
                                Tuổi
                            </th>
                            <th style="height:30px;font-size:12px;
                                       border-top: solid 1px #AAAAAA;
                                       border-bottom: solid 1px #AAAAAA;
                                       border-left: solid 1px #AAAAAA;">
                                Loại Khám
                            </th>
                            <th style="height:30px;font-size:12px;
                                       border-top: solid 1px #AAAAAA;
                                       border-bottom: solid 1px #AAAAAA;
                                       border-left: solid 1px #AAAAAA;">
                                Trạng Thái
                            </th>
                            <th style="height:30px;font-size:12px;
                                       border-top: solid 1px #AAAAAA;
                                       border-right: solid 1px #AAAAAA;
                                       border-bottom: solid 1px #AAAAAA;
                                       border-left: solid 1px #AAAAAA;">
                                Ưu Tiên
                            </th>
                        </tr>
                        <tr>
                            <td style="height:20px; text-align:center;
                                        border-bottom: solid 1px #AAAAAA;
                                        border-left: solid 1px #AAAAAA;
                                        padding-top:5px;">
                                    ...     
                            </td>
                            <td style="height:20px; 
                                        border-bottom: solid 1px #AAAAAA;
                                        border-left: solid 1px #AAAAAA;
                                        padding-top:5px; padding-left:5px">
                                    ...     
                            </td>
                            <td style="height:20px; 
                                        border-bottom: solid 1px #AAAAAA;
                                        border-left: solid 1px #AAAAAA;
                                        padding-top:5px; padding-left:5px">
                                    ...     
                            </td>
                            <td style="height:20px; 
                                        border-bottom: solid 1px #AAAAAA;
                                        border-left: solid 1px #AAAAAA;
                                        padding-top:5px; padding-left:5px">
                                    ...     
                            </td>
                            <td style="height:20px; 
                                        border-bottom: solid 1px #AAAAAA;
                                        border-left: solid 1px #AAAAAA;
                                        padding-top:5px; padding-left:5px">
                                    ...     
                            </td>
                            <td style="height:20px; 
                                        border-bottom: solid 1px #AAAAAA;
                                        border-left: solid 1px #AAAAAA;
                                        padding-top:5px; padding-left:5px">
                                    ...     
                            </td>
                            <td style="height:20px; 
                                        border-bottom: solid 1px #AAAAAA;
                                        border-left: solid 1px #AAAAAA;
                                        padding-top:5px; padding-left:5px">
                                    ...     
                            </td>
                            <td style="height:20px;
                                        border-right: solid 1px #AAAAAA;
                                        border-bottom: solid 1px #AAAAAA;
                                        border-left: solid 1px #AAAAAA;
                                        padding-top:5px; padding-left:5px">
                                    ...
                            </td>
                        </tr>
					</table>
                </div>
            </div>

        <div id="divDialog">
                <iframe id="ifSuaThongTin" frameborder="0" src="" width="100%" height="100%"></iframe>
        </div>

        <div id="divChuyenVien_S" title="THÔNG TIN CHUYỂN VIỆN">
            <table id="tableChuyenVien">
				<tr>
					<td style="width: 335px"><asp:label id="Label66" runat="server">Chuyển đến bệnh viện</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtChuyenDenBV" runat="server" width="328px" ></asp:textbox><BR>
						<%--<div id="div_dsbv" style="display: none; width: 329px; POSITION: absolute; height: 88px">
							<div style="POSITION: relative">
								<div id="div_dsc_bv" style="border-right: #203050 1px solid; PADDING-RIGHT: 4px; BACKGROUND-POSITION: 50% top; BORDER-TOP: #203050 1px solid; PADDING-LEFT: 4px; FILTER: progid: DXImageTransform.Microsoft.Shadow(color=gray, direction=135, strength=16); PADDING-BOTTOM: 4px; border-left: #203050 1px solid; width: 328px; PADDING-TOP: 4px; border-bottom: #203050 1px solid; BACKGROUND-REPEAT: repeat-x; POSITION: relative; height: 110px; BACKGROUND-COLOR: activeborder"></div>
							</div>
						</div>--%>
					</td>
				</tr>
				<tr>
					<td style="width: 335px"><asp:label id="Label21" runat="server">Dấu hiệu lâm sàng</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtDauHieu" runat="server" width="328px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 335px"><asp:label id="Label27" runat="server">Các xét nghiệm</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtXetNghiem" runat="server" width="328px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 335px"><asp:label id="Label28" runat="server">Chẩn đoán</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtChanDoan" runat="server" width="328px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 335px"><asp:label id="Label29" runat="server">Thuốc đã dùng</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtThuoc" runat="server" width="328px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 335px"><asp:label id="Label30" runat="server">Tình trạng người bệnh lúc chuyển viện</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtTinhTrang" runat="server" width="328px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 335px"><asp:label id="Label31" runat="server">Lí do chuyển viện</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtLiDo" runat="server" width="328px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 335px"><asp:label id="Label32" runat="server">Phương tiện vận chuyển</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtPhuongTien" runat="server" width="328px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 335px"><asp:label id="Label33" runat="server">Họ tên, chức danh người đưa đi</asp:label></td>
					<td style="width: 350px"><asp:textbox id="txtNguoiDua" runat="server" width="328px" ></asp:textbox></td>
				</tr>
				<tr>
					<td colspan="2" style="text-align:center"><asp:button id="Button5" runat="server" width="0px" Text="Button" Style="display:none"></asp:button>
                        <input id="btnInGiayChuyenVien" type="button" value="In giấy chuyển viện"
							name="btnInGiayChuyenVien" />
                        <input onclick="xoaDivCV();" type="button" value="Hủy" /></td>
				</tr>
			</table>
        </div>

        <div id="divNhapVien_S" title="TÓM TẮT BỆNH ÁN">
            <table id="Table7" border="0" style="height:auto">
				<tr>
					<td style="width: 161px">&nbsp;&nbsp; -
						<asp:label id="Label61" runat="server">Lí do vào viện</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtLiDo_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px" >&nbsp;&nbsp; -
						<asp:label id="Label60" runat="server">Chẩn đoán</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtChanDoan_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px">&nbsp;&nbsp; -
						<asp:label id="Label59" runat="server">Quá trình bệnh lí</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtQuaTrinh_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px">&nbsp;&nbsp; -
						<asp:label id="Label58" runat="server" width="136px">Tiền sử bệnh bản thân</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtTienSuBanThan_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px">&nbsp;&nbsp; -
						<asp:label id="Label57" runat="server">Tiền sử bệnh gia đình</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtTienSuGiaDinh_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px">&nbsp;&nbsp; -
						<asp:label id="Label56" runat="server">Khám toàn thân</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtKhamToanThan_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px" >&nbsp;&nbsp; -
						<asp:label id="Label43" runat="server">Khám bộ phận</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtKhamBoPhan_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px; height: 25px" >&nbsp;&nbsp; -
						<asp:label id="Label44" runat="server">Dấu hiệu lâm sàng</asp:label></td>
					<td style="width: 363px; height: 25px"><asp:textbox id="txtDauHieu_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px">&nbsp;&nbsp; -
						<asp:label id="Label45" runat="server">Thuốc đã dùng</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtThuoc_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px" >&nbsp;&nbsp; -
						<asp:label id="Label46" runat="server">Cho điều trị tại khoa</asp:label></td>
					<td style="width: 363px"><asp:label id="Label62" runat="server" width="80px">Khoa nội trú: </asp:label>
                        <asp:dropdownlist id="dropNhapVien" runat="server" width="200px"></asp:dropdownlist>
                        <asp:textbox id="txtKhoa_BA" runat="server" style="display:none" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px">&nbsp;&nbsp; -
						<asp:label id="Label47" runat="server">Chú ý</asp:label></td>
					<td style="width: 363px"><asp:textbox id="txtChuY_BA" runat="server" width="360px" ></asp:textbox></td>
				</tr>
				<tr>
					<td style="width: 161px"></td>
					<td style="width: 363px"></td>
				</tr>
				<tr>					
					<td style="text-align: center" colspan="2">
                        <input id="btnNhapvien" onclick="btnInPhieuKham_click();" type="button" value="Lưu &amp; In phiếu khám nhập viện" /><input type="button" value="Hủy" />
						<asp:button id="btnKhamNhapVien_0" runat="server" style="display:none" ></asp:button>
					</td>
				</tr>
			</table>
        </div>

        <div id="divChiDinh" title="CHỈ ĐỊNH DỊCH VỤ CẬN LÂM SÀNG">
            <table>
                <tr>
                    <td>
                        <div id="divUserControlChiDinh"></div>
                        <userControl:ChiDinh ID="userControlChiDinh" runat="server"/>
                    </td>
                </tr>
            </table>
        </div>

		</form>

        <div id="divDanhSachPhieuKham" title="DANH SÁCH PHIẾU KHÁM">
            <table>				
				<tr>
					<td>
						<table border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td noWrap><label>Tên BN:</label></td>
									<td><input id="txtDSPK_TenBN" style="width:120px" type="text" /></td>
									<td noWrap><label>Mã BN:</label></td>
									<td><input id="txtDSPK_MaBN" style="width:120px" type="text" /></td>
									<td noWrap><label>Mã phiếu:</label></td>
									<td><input id="txtDSPK_MaPhieu" style="width:120px" type="text" /></td>
									<td noWrap></td>
									<td noWrap></td>
									<td noWrap></td>
								</tr>
								<tr>
									<td style="HEIGHT: 1px" noWrap>Khám từ ngày:</td>
									<td style="HEIGHT: 1px"><input id="txtDSPK_TuNgay" style="width:120px" type="text" /></td>
									<td style="HEIGHT: 1px" noWrap>đến ngày</td>
									<td style="HEIGHT: 1px"><input id="txtDSPK_DenNgay" style="width:120px" type="text" /></td>
									<td style="HEIGHT: 1px" noWrap> Bác sĩ khám/ Mã BS:</td>
									<td style="HEIGHT: 1px"><input type="text" id="txtDSPK_BacSi" style="width:120px; background-color:#E0E0E0" readonly="true" /></td>
									<td style="HEIGHT: 1px" noWrap>Xử trí</td>
									<td style="HEIGHT: 1px">
                                            <select id="dropDownDSPK_XuTri" style="width:120px">
                                                <option value="tatca">Tất cả</option>
                                                <option value="ketoa">Kê toa</option>
                                                <option value="nhapvien">Nhập viện</option>
                                                <option value="gioithieu">Giới thiệu nơi khác</option>
                                                <option value="chua">Chưa xử trí</option>
                                            </select>
                                            <%--<asp:dropdownlist  runat="server" Width="120px">
											<asp:ListItem Value="tatca">Tất cả</asp:ListItem>
											<asp:ListItem Value="ketoa">K&#234; toa</asp:ListItem>
											<asp:ListItem Value="nhapvien">Nhập viện</asp:ListItem>
											<asp:ListItem Value="gioithieu">Giới thiệu nơi kh&#225;c</asp:ListItem>
											<asp:ListItem Value="chua">Chưa xử tr&#237;</asp:ListItem>
										</asp:dropdownlist>--%>
									</td>
									<td style="HEIGHT: 1px"><input type="button" id="btnTraCuuPhieuKham" value="Tra cứu" /></td>
								</tr>
								<tr>
									<td noWrap></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
									<td></td>
								</tr>
							</table>
					</td>
				</tr>
				<tr>
					<td style="BACKGROUND-IMAGE: url(rs/barclassic24.jpg)"><asp:label id="Label72" runat="server">Tống số:</asp:label><asp:label id="lblKetQuaDSPK" runat="server" EnableViewState="False"></asp:label></td>
				</tr>
				<tr>
					<td>
                        <table id="tableDanhSachPhieuKham" style="width:100%;"></table>   
                    </td>                                             
				</tr>
                <tr>
                    <td>
                        <div id="container-paging">	                           
	                        <div class="pagination">		
                                <div id="htmlPagingDSPK"></div>                        		                        
	                        </div>
                        </div>
                    </td>
                </tr>
			</table>
        </div>

        
</body>
</html>
